package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the JOBHANDLERREGISTRY database table.
 * 
 */
@Entity
@Table(name="JOBHANDLERREGISTRY")
public class Jobhandlerregistry implements Serializable {
	private static final long serialVersionUID = 1L;
	private JobhandlerregistryPK id;
	private String controlcommand;
	private BigDecimal currentjobs;
	private BigDecimal freemem;
	private BigDecimal loadaverage;
	private String osname;
	private double powerfactor;
	private String status;
	private Date timstamp;
	private BigDecimal totalmem;
	private BigDecimal usedmem;

    public Jobhandlerregistry() {
    }


	@EmbeddedId
	public JobhandlerregistryPK getId() {
		return this.id;
	}

	public void setId(JobhandlerregistryPK id) {
		this.id = id;
	}
	

	@Column(length=255)
	public String getControlcommand() {
		return this.controlcommand;
	}

	public void setControlcommand(String controlcommand) {
		this.controlcommand = controlcommand;
	}


	public BigDecimal getCurrentjobs() {
		return this.currentjobs;
	}

	public void setCurrentjobs(BigDecimal currentjobs) {
		this.currentjobs = currentjobs;
	}


	public BigDecimal getFreemem() {
		return this.freemem;
	}

	public void setFreemem(BigDecimal freemem) {
		this.freemem = freemem;
	}


	public BigDecimal getLoadaverage() {
		return this.loadaverage;
	}

	public void setLoadaverage(BigDecimal loadaverage) {
		this.loadaverage = loadaverage;
	}


	@Column(nullable=false, length=255)
	public String getOsname() {
		return this.osname;
	}

	public void setOsname(String osname) {
		this.osname = osname;
	}


	@Column(precision=126)
	public double getPowerfactor() {
		return this.powerfactor;
	}

	public void setPowerfactor(double powerfactor) {
		this.powerfactor = powerfactor;
	}


	@Column(length=255)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}


    @Temporal( TemporalType.DATE)
	public Date getTimstamp() {
		return this.timstamp;
	}

	public void setTimstamp(Date timstamp) {
		this.timstamp = timstamp;
	}


	public BigDecimal getTotalmem() {
		return this.totalmem;
	}

	public void setTotalmem(BigDecimal totalmem) {
		this.totalmem = totalmem;
	}


	public BigDecimal getUsedmem() {
		return this.usedmem;
	}

	public void setUsedmem(BigDecimal usedmem) {
		this.usedmem = usedmem;
	}

}